<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/styles.css" />
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/flexigrid.css" />
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/flexigrid.pack.css" />
		<link rel="stylesheet" type="text/css" charset="utf-8"
			href="/hrms/css/ztree.css" />
		<script language="javascript"
			src="/hrms/js/my97/WdatePicker.js"></script>
		<script type="text/javascript"
			src="/hrms/js/jquery-1.7.2.min.js"></script>

		<script type="text/javascript"
			src="/hrms/js/jquery.container.js"></script>

		<script type="text/javascript"
			src="/hrms/js/common.js"></script>

		<script type="text/javascript"
			src="/hrms/js/flexigrid.pack.js"></script>

		<script type="text/javascript">
	$(document).ready( function() {
		demand("traindatamgr");
		$("#add").click(function(){
			$("#data_add").dialog("close");
		});
		$("#update").click(function(){
			$("#data_update").dialog("close");
		});
		$("#data_update").dialog("close");
		$("#data_add").dialog("close");
	});
</script>

	</head>

	<body onload="loadDemand('traindatamgr')">
		<div align="center">
			<br />
			<br />
			<br />
			<table width="80%" border="0" class="table_frame" align="center">

				<thead class="table_title">
					<tr>
						<td align="center">
							培训资料信息管理
						</td>
					</tr>
				</thead>
				<tr>
					<td>
						<table width="100%" border="0" class="table_block">
							<tr>
								<td align="right">
									资料编号：
								</td>
								<td align="left">
									<input name="" type="text" size="20" />
									&nbsp;
								</td>
								<td align="right">
									课题：
								</td>
								<td align="left">
									<input name="Input" type="text" size="20" />
								</td>
							</tr>
							<tr>
								<td colspan="4" align="center">
									<input name="" type="button" value="查询" class="button_image" />
									<input name="" type="reset" class="button_image" />
								</td>

							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="20"></td>
				</tr>
				<tr>
					<td>
						<div>
							<table id="querylist"></table>
							<script type="text/javascript">
	$("#querylist").flexigrid( {
		url :'post2.php',
		dataType :'json',
		colModel : [ {
			display :'资料编号',
			name :'iso',
			width :160,
			sortable :true,
			align :'center'
		}, {
			display :'课题',
			name :'printable_name',
			width :120,
			sortable :true,
			align :'left'
		}, {
			display :'资料简介',
			name :'numcode',
			width :80,
			sortable :true,
			align :'right'
		}],
		buttons : [ {
			name :'创建资料信息',
			bclass :'add',
			onpress :add
		}, {
			name :'资料信息编辑',
			bclass :'edit',
			onpress :update
		}, {
			name :'删除培训资料',
			bclass :'delete',
			onpress :remove
		}, {
			separator :true
		} ],
		searchitems : [ {
			display :'资料编号',
			name :'iso'
		}, {
			display :'课题',
			name :'name',
			isdefault :true
		} ],
		sortname :"iso",
		sortorder :"asc",
		usepager :true,
		title :'培训资料信息列表',
		funcp :true,
		rp :15,
		showTableToggleBtn :true,
		width :1000,
		height :200
	});
	function add(com, grid) {
		$("#data_add").dialog("open");
	}
	function update(com, grid) {
		$("#data_update").dialog("open");
	}
	function remove(com, grid) {
		alert("请先选择您要删除的数据！");
	}
</script>
						</div>
					</td>
				</tr>
			</table>
			<div align="center">
				<br />
				<br />
				<table width="90%" border="0" class="table_frame" align="center">
					<tr>
						<td align="center">
							<input id="demand" name="" type="button" value="需求收集"
								class="button_image" />
						</td>
					</tr>
					<tr>
						<td align="center">
							<div id="demand_input" style="display: none">
								<textarea rows="15" cols="120" id="demand_text"></textarea>
								<br />
								<input id="demand_save" type="button" class="button_image"
									value="保存需求" />
							</div>
						</td>
					</tr>
				</table>
				<table id="demand_des" width="90%" border="0" class="table_frame"
					align="center">
					<thead align="center" class="table_title">
						<tr>
							<td>
								需求描述
							</td>
						</tr>
					</thead>
				</table>
			</div>
		</div>
		<ui:dialog id="data_add" title="资料新增" height="300" width="700"
			modal="true">
			<form id="aform"
				action="/eaip/webservice/resources/session/login"
				method="post">
				<table class="table_frame" width="100%">
					<tr>
						<td align="right">
							资料编号:
						</td>
						<td align="left">
							<input id="empl_add" type="text" value=""
								size=20 />
							<font color="red">*</font>
						</td>
						<td align="right">
							课题:
						</td>
						<td align="left">
							<input id="empl_add" type="text" value=""
								size=20 />
						</td>
					</tr>
					<tr>
						<td align="right">
							资料简介:
						</td>
						<td align="left" colspan="3">
							<textarea rows="3" cols="20"></textarea>
							<input type="button" value="上传附件" class="button_image" id="add" />
						</td>
					</tr>
					<tr>
						<td align="center" colspan="4">
							<input type="button" value="保存" class="button_image" id="add" />
							<input type="reset" value="重置" class="button_image" />
						</td>
					</tr>
				</table>
			</form>
		</ui:dialog>
		<ui:dialog id="data_update" title="资料修改" height="300" width="700"
			modal="true">
			<form id="aform"
				action="/eaip/webservice/resources/session/login"
				method="post">
				<table class="table_frame" width="100%">
					<tr>
						<td align="right">
							资料编号:
						</td>
						<td align="left">
							<input id="empl_add" type="text" value=""
								size=20 />
							<font color="red">*</font>
						</td>
						<td align="right">
							课题:
						</td>
						<td align="left">
							<input id="empl_add" type="text" value=""
								size=20 />
						</td>
					</tr>
					<tr>
						<td align="right">
							资料简介:
						</td>
						<td align="left" colspan="3">
							<textarea rows="3" cols="20"></textarea>
							<input type="button" value="上传附件" class="button_image" id="add" />
						</td>
					</tr>
					<tr>
						<td align="center" colspan="4">
							<input type="button" value="保存" class="button_image" id="add" />
							<input type="reset" value="重置" class="button_image" />
						</td>
					</tr>
				</table>
			</form>
		</ui:dialog>
	</body>
</html>
